package com.bbkb.learn;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

//@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
//@ImportResource(locations = "classpath:dubbo-consumer.xml")
//@MapperScan({"com.bbkb.learn.dao"})
@SpringBootApplication
public class BbkbLearnWebApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(BbkbLearnWebApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        //java mail发邮件是附件名过长默认会被截断，主动设为false可正常显示附件名
//        System.setProperty("mail.mime.splitlongparameters", "false");
        return application.sources(BbkbLearnWebApplication.class);
    }
}
